package com.hyfrogx.modules.manage.entity.permission;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@TableName("hy_permission")
public class Permission {

    @TableId
    private Integer pid;

    @NotNull(message="权限不能为空")
    private String sn;
    @NotNull(message="权限名称不能为空")
    private String name;

    private String remark;
}
